import React from 'react';
import {Tools} from 'weaver-mobile';

const getLabel = Tools.getLabel;

export const gridData = [
    {
        text: <div className='h-card-text'>{getLabel(15307, "入库验收")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-guanliyuanrenzheng'/>,
        link: '/acceptance/0'
    }, {
        text: <div className='h-card-text'>{getLabel(886, "资产领用")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-baoguo_dakai'/>,
        link: '/operations/cptuse'
    }, {
        text: <div className='h-card-text'>{getLabel(883, "资产调拨")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-huopinfenliu'/>,
        link: '/operations/cptmove'
    }, {
        text: <div className='h-card-text'>{getLabel(6051, "资产借用")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-baoguo_lingjian'/>,
        link: '/operations/cptlend'
    }, {
        text: <div className='h-card-text'>{getLabel(6054, "资产减损")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-shuliangjianshao'/>,
        link: '/operations/cptloss'
    },
    {
        text: <div className='h-card-text'>{getLabel(6052, "资产报废")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-shanchu'/>,
        link: '/operations/cptdiscard'
    }, {
        text: <div className='h-card-text'>{getLabel(22459, "资产送修")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-weixiufuwu'/>,
        link: '/operations/cptmend'
    }, {
        text: <div className='h-card-text'>{getLabel(15305, "资产归还")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-baoguo_shouhuo'/>,
        link: '/operations/cptback'
    }, {
        text: <div className='h-card-text'>{getLabel(6055, "资产变更")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-jiazai_shuaxin'/>,
        link: '/operations/cptchange'
    }, {
        text: <div className='h-card-text'>{getLabel(18327, "扫描")}</div>,
        icon: <i className='h-card-icon icon-cpt icon-saoyisao'/>,
        link: '/operations/scan'
    }
];

export const instockDataTemplate = {
    default:
        "<div class='template-wrapper'>" +
        "	<div class='template-avator-box'>" +
        "		<img class='template-avatar' src='#{buyeridicon}'>" +
        "	</div>" +
        "	<div class='template-main-box-no-state'>" +
        "		<p class='template-row'>" +
        "			<span>" + getLabel(83587, "入库单标识") + "：#{tmpid}</span>" +
        "			<span>" + getLabel(389836, "申购人") + "：#{buyeridname}</span>" +
        "		</p>" +
        "		<p class='template-row'>" +
        "			<span>" + getLabel(389837, "申购日期") + "：#{SelectDate}</span>" +
        "			<span>" + getLabel(753, "入库日期") + "：#{stockindate}</span>" +
        "		</p>" +
        "	</div>" +
        "</div>"
}

export const myAssetDataTemplate = {
    default: "<div class='template-wrapper-border'>" +
        "<div class='template-wrapper'>" +
        "	<div class='template-avator-box'>" +
        "		<img class='template-avatar' src='#{cptcapitalurl}'>" +
        "	</div>" +
        "	<div class='template-main-box'>" +
        "		<p class='template-row template-title'>" +
        "			<span>#{name}</span>" +
        "		</p>" +
        "		<p class='template-row'>" +
        "			<span>" + getLabel(714, "编号") + "：#{mark}</span>" +
        "			<span>" + getLabel(904, "规格型号") + "：#{capitalspec}</span>" +
        "		</p>" +
        "		<p class='template-row'>" +
        "			<span>" + getLabel(15393, "所属部门") + "：#{blongdepartmentname}</span>" +
        "			<span>" + getLabel(831, "资产组") + "：#{capitalgroupidname}</span>" +
        "		</p>" +
        "	</div>" +
        "	<div class='template-dot-box'>" +
        "		<div class='template-dot-#{stateid}'>" +
        "		#{statename}" +
        "		</div>" +
        "	</div>" +
        "</div>" +
        "</div>"
};
